import pandas as pd;
df=pd.read_csv("wine.data .csv")
new_df=df[df['type'].isin([1,2])]
new_df.to_csv('new_wine.csv',index=False)